Skip to content

Commit 46bf8cf

Browse files
fix(profile): remove unnecessary optional chaining
1 parent 0bbc278 commit 46bf8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/modals/edit-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function updateProfile(): Promise<void> {
220220
}
221221

222222
snapshot.details = response.body.data ?? updates;
223-
snapshot.inventory?.badges?.forEach((badge) => {
223+
snapshot.inventory?.badges.forEach((badge) => {
224224
if (badge.id === currentSelectedBadgeId) {
225225
badge.selected = true;
226226
} else {

0 commit comments

Comments
 (0)