contact-store: upon %edit of a nonexistent contact, make an empty contact and set that field

This commit is contained in:
Logan Allen 2021-02-18 11:51:15 -06:00
parent 081c4579b2
commit 6ee6a99acf

View File

@ -143,7 +143,7 @@
|= [=ship =edit-field:store timestamp=@da]
|^
^- (quip card _state)
=/ old (~(got by rolodex) ship)
=/ old (fall (~(get by rolodex) ship) *contact:store)
?: (lte timestamp last-updated.old)
[~ state]
=/ contact (edit-contact old edit-field)