Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 協力攻撃投票ページで一部が英訳されていなかったので修正した (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored Jun 25, 2022
1 parent 84275b4 commit ac00d13
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions components/vote-to-unite-attacks/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const Main: NextPage = () => {
.then((response) => {
setApiResponse(response.data)

console.log('apiResponse', response.data)
setNowLoading(false)
})
.catch((error) => {
Expand Down Expand Up @@ -114,7 +115,11 @@ export const Main: NextPage = () => {
// TODO: ハッシュタグは変数にしたい
// TODO: キャラ名入れたほうがいい場合は入れる (uniteCharacterNames)
useEffect(() => {
console.log(uniteCharacterNames)
// setUniteCharacterNames(
// uniteAttack.characterNames
// )
// console.log(apiResponse)
// console.log(uniteCharacterNames)

const updatedTweetText = `${titleName}
${uniteAttackName}
Expand Down Expand Up @@ -211,8 +216,16 @@ ${uniteAttackName}
id={`${uniteAttack.id}`}
data-theme="light"
key={uniteAttack.id}
value={uniteAttack.name}
checked={uniteAttackName === uniteAttack.name}
value={
lang === 'ja'
? uniteAttack.name
: uniteAttack.name_en
}
checked={
lang === 'ja'
? uniteAttackName === uniteAttack.name
: uniteAttackName === uniteAttack.name_en
}
type="radio"
name="radio-4"
className="radio radio-accent mr-4 checked:bg-blue-500"
Expand Down

0 comments on commit ac00d13

Please sign in to comment.