mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
More prompt update alert
This commit is contained in:
@ -30,7 +30,7 @@ const versionSlice = createSlice({
|
|||||||
extraReducers: builder => {
|
extraReducers: builder => {
|
||||||
builder.addCase(retriveVersionLatest.fulfilled, (state, action) => {
|
builder.addCase(retriveVersionLatest.fulfilled, (state, action) => {
|
||||||
if (action.payload && Constants.manifest?.version) {
|
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
|
state.update = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user