- {inviteCode ? (
+ {inviteErr ? (
+ <>
+ Got an error when creating the invite:
+ {inviteErr.toString()}
+ >
+ ) : inviteCode ? (
<>
This is an invite code that you can send to a friend to collaborate on
this drawing with you.
diff --git a/src/JoinModal.js b/src/JoinModal.js
index 467a081..a340884 100644
--- a/src/JoinModal.js
+++ b/src/JoinModal.js
@@ -16,10 +16,10 @@ function JoinModal({ isOpen, onClose }) {
return (
- Insert here the ppppp:// invite code you received from your friend.
+ Insert here the ppppp:// or http(s):// invite code you received from your friend.