@@ -5,6 +5,7 @@ import GlobalEvents
55import Html exposing (..)
66import Html.Attributes as Attr
77import Html.Events as Ev
8+import Logic.Cipher exposing (normalizeCipher)
89import Modal exposing (modal)
910import Page exposing (..)
1011import Pages.PasswordGenerator as PasswordGenerator
@@ -43,7 +44,10 @@ page liftMsg =
4344 , title =
4445 \{ fullCipher, callbacks } ->
4546 [ text fullCipher.name
46− , span [ Attr.class "u-float-right" ] [ iconButton "task-outstanding" (callbacks.save fullCipher) ]
47+ , span [ Attr.class "u-float-right" ]
48+ [ iconButton "task-outstanding"
49+ (callbacks.save { fullCipher | cipher = normalizeCipher fullCipher.cipher })
50+ ]
4751 ]
4852 , event =
4953 \model ev ->