Skip to content

Commit

Permalink
fix(converters): fix mutation of const version array
Browse files Browse the repository at this point in the history
  • Loading branch information
stianjsu committed Jul 10, 2023
1 parent 3450d9c commit 6a1d7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-tavla/src/Shared/utils/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TSettings } from 'types/settings'
export function convertSettingsVersion(settings: any): TSettings {
if (settings.version >= currentVersion) return settings

const orderedVersions = reverse(versions)
const orderedVersions = reverse([...versions])

const upgradedSettings: ReturnType<(typeof versions)[0]> = orderedVersions
.slice(settings.version)
Expand Down

0 comments on commit 6a1d7f1

Please sign in to comment.