Skip to content

Commit

Permalink
refactor: 不要な定義を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Nov 20, 2023
1 parent 1c12594 commit 625e105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/pages/avatar-decorations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ let avatarDecorations: any[] = $ref([]);

async function selectImage(decoration, ev) {
const file = await selectFile(ev.currentTarget ?? ev.target, null);
const candidate = file.name.replace(/\.(.+)$/, '');
decoration.name = candidate;
decoration.name = file.name.replace(/\.(.+)$/, '');
decoration.url = file.url;
}

Expand Down

0 comments on commit 625e105

Please sign in to comment.