From ab97f27fd10e8a2af4955948d54461336fb53b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 17 Nov 2021 10:37:58 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 90d28e8..d45daaa 100644 --- a/README.md +++ b/README.md @@ -471,9 +471,9 @@ The component can look roughly like this: }, init() { - $watch('money', () => $wire.set('money', { - value: Math.round(this.value / 100), - currency: this.currency. + $watch('money', money => $wire.set('money', { + value: Math.round(money.value / 100), + currency: money.currency. })) }, }" x-init="init">