Skip to content

Commit

Permalink
Merge pull request #77 from burnable-tech/new-new-create
Browse files Browse the repository at this point in the history
Don't freak out so much if commPubkey is set twice
  • Loading branch information
coinop-logan authored Sep 20, 2019
2 parents cddcc2b + ca07072 commit f3578fb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@

<body>
<div id='elm'></div>
<script type="text/javascript" src="/DAIHard/static/js/main-9806d396881bb1e0c476.js"></script></body>
<script type="text/javascript" src="/DAIHard/static/js/main-f00bf12f5b428b34fa4f.js"></script></body>

</html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@

<body>
<div id='elm'></div>
<script type="text/javascript" src="/DAIHard/static/js/main-9806d396881bb1e0c476.js"></script></body>
<script type="text/javascript" src="/DAIHard/static/js/main-f00bf12f5b428b34fa4f.js"></script></body>

</html>

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions src/State.elm
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,18 @@ update msg model =
, Cmd.none
)

( _, Wallet.Active userInfo ) ->
let
_ =
Debug.log "User pubkey set, but there's already an active userInfo! Overwriting commpubkey." userInfo

wallet =
Wallet.Active
{ userInfo | commPubkey = commPubkey }
in
{ model | wallet = wallet }
|> runCmdDown (CmdDown.UpdateWallet wallet)

( _, _ ) ->
( model
|> addUserNotice
Expand Down

0 comments on commit f3578fb

Please sign in to comment.