Skip to content

Commit 89049ce

Browse files
authored
[docs] update edit page in getting-started (#11463)
1 parent 8aa203c commit 89049ce

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

contributors.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
- ericschn
7676
- faergeek
7777
- FilipJirsak
78+
- focusotter
7879
- frontsideair
7980
- fyzhu
8081
- fz6m
@@ -179,6 +180,7 @@
179180
- modex98
180181
- morleytatro
181182
- ms10596
183+
- mtliendo
182184
- ned-park
183185
- nilubisan
184186
- Nismit

docs/start/tutorial.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -768,14 +768,14 @@ export default function EditContact() {
768768
aria-label="First name"
769769
type="text"
770770
name="first"
771-
defaultValue={contact.first}
771+
defaultValue={contact?.first}
772772
/>
773773
<input
774774
placeholder="Last"
775775
aria-label="Last name"
776776
type="text"
777777
name="last"
778-
defaultValue={contact.last}
778+
defaultValue={contact?.last}
779779
/>
780780
</p>
781781
<label>
@@ -784,7 +784,7 @@ export default function EditContact() {
784784
type="text"
785785
name="twitter"
786786
placeholder="@jack"
787-
defaultValue={contact.twitter}
787+
defaultValue={contact?.twitter}
788788
/>
789789
</label>
790790
<label>
@@ -794,14 +794,14 @@ export default function EditContact() {
794794
aria-label="Avatar URL"
795795
type="text"
796796
name="avatar"
797-
defaultValue={contact.avatar}
797+
defaultValue={contact?.avatar}
798798
/>
799799
</label>
800800
<label>
801801
<span>Notes</span>
802802
<textarea
803803
name="notes"
804-
defaultValue={contact.notes}
804+
defaultValue={contact?.notes}
805805
rows={6}
806806
/>
807807
</label>

0 commit comments

Comments
 (0)