Fix impossible change person name (#1053)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-02-25 15:03:12 +06:00 committed by GitHub
parent 8b9b6a2f78
commit d25cf50502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,15 @@
export let object: Person
$: firstName = getFirstName(object.name)
$: lastName = getLastName(object.name)
let firstName = getFirstName(object.name)
let lastName = getLastName(object.name)
$: setName(object)
function setName (object: Person) {
firstName = getFirstName(object.name)
lastName = getLastName(object.name)
}
const client = getClient()