small fix
f566265f
1 file(s) · +1 −1
| 135 | 135 | <p>{note.note}</p> |
|
| 136 | 136 | </div> |
|
| 137 | 137 | </div> |
|
| 138 | - | {user.id === note.user_id && ( |
|
| 138 | + | {user && user.id === note.user_id && ( |
|
| 139 | 139 | <button |
|
| 140 | 140 | onClick={async () => deleteMessage(note.id)} |
|
| 141 | 141 | type="button" |