More prompt update alert

This commit is contained in:
Zhiyuan Zheng 2022-02-07 23:03:21 +01:00
parent 7bf428f179
commit 6651f86eaa
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const versionSlice = createSlice({
extraReducers: builder => {
builder.addCase(retriveVersionLatest.fulfilled, (state, action) => {
if (action.payload && Constants.manifest?.version) {
if (parseInt(action.payload) > parseInt(Constants.manifest.version)) {
if (parseFloat(action.payload) > parseFloat(Constants.manifest.version)) {
state.update = true
}
}