Skip to content

Commit

Permalink
fix: remove annoying save on load
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Dec 29, 2023
1 parent ca946a8 commit 04d55e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/Event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ export const eventCheck = async () => {
const events: EventData[] = apiEvents.map((value) => {
const { name, color, start, end, url, ...buffs } = value
return {
name, color, start, end, url, buffs
name,
color,
start,
end,
url,
buffs
}
})

Expand Down
3 changes: 2 additions & 1 deletion src/ImportExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ export const promocodes = async (input: string | null, amount?: number) => {
return Alert(i18next.t('importexport.comeBackSoon'))
}
if (
input === 'synergism2023' && !player.codes.get(46) && G.isEvent && getEvent()?.name === 'Synergism 3: More Synergies'
input === 'synergism2023' && !player.codes.get(46) && G.isEvent
&& getEvent()?.name === 'Synergism 3: More Synergies'
) {
if (!player.dailyCodeUsed) {
return Alert(
Expand Down
3 changes: 1 addition & 2 deletions src/Synergism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ import {
} from './Hepteracts'
import { disableHotkeys } from './Hotkeys'
import { init as i18nInit } from './i18n'
import { exportSynergism } from './ImportExport'
import { handleLogin } from './Login'
import { octeractData, OcteractUpgrade } from './Octeracts'
import { updatePlatonicUpgradeBG } from './Platonic'
Expand Down Expand Up @@ -4848,7 +4847,7 @@ export const reloadShit = async (reset = false) => {
} else {
changeTab('settings')

void Alert(i18next.t('general.exportYourGame')).finally(() => exportSynergism(false))
void Alert(i18next.t('general.exportYourGame'))
}

changeSubTab('buildings', { page: 0 })
Expand Down

0 comments on commit 04d55e4

Please sign in to comment.