@@ -142,7 +142,9 @@ main = do
142142 let
143143 sortedCiphers = Array.sortWith (_.date >>> Down) ciphers
144144 send $ Bridge.LoadCiphers $ Bridge.Sub_LoadCiphers_List $ map _.cipher sortedCiphers
145− liftEffect $ Storage.store storage SyncKey sync
145+ api <- getAuthedApi
146+ newSync <- liftPromise $ api.getSync unit
147+ liftEffect $ Storage.store storage SyncKey newSync
146148 Bridge.NeedsReset -> do
147149 WebStorage.clear storage
148150 Elm.send app Bridge.Reset