Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix: remove +L2 suffix from currentVersion (#3891)
Browse files Browse the repository at this point in the history
* fix: remove `+L2` suffix from `currentVersion`

* fix: remove log
  • Loading branch information
iamacook authored May 18, 2022
1 parent 45dd403 commit 7a6792a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/logic/safe/store/reducer/safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ const updateSafeProps = (prevSafe, safe) => {
: record.update(key, (current) => current.merge(safe[key]))
}
} else {
// By default we overwrite the value. This is for strings, numbers and unset values
record.set(key, safe[key])
// Temp fix
if (key === 'currentVersion' && safe[key].endsWith('+L2')) {
record.set(key, safe[key].replace('+L2', ''))
} else {
// By default we overwrite the value. This is for strings, numbers and unset values
record.set(key, safe[key])
}
}
})
})
Expand Down

0 comments on commit 7a6792a

Please sign in to comment.