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

fix: 🐛 協力攻撃投票ページで一部が英訳されていなかったので修正した #536

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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