Skip to content

Commit 63a1457

Browse files
committed
fix for country store changes
1 parent 1dc922b commit 63a1457

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/App.vue

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ onMounted(() => {
2828
authStore.refresh_token = refresh_token;
2929
settingsStore.uploaded = true;
3030
}
31+
32+
// this is because of changes made. should remove countries if they are not object. Older versions were just country codes in an array
33+
settingsStore.countries.forEach((country, index) => {
34+
if (typeof country === "object") return;
35+
settingsStore.countries.splice(index, 1);
36+
})
3137
});
3238
3339
onMounted(async () => {

0 commit comments

Comments
 (0)