Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f2bcc6

Browse files
authoredAug 2, 2024··
Merge pull request #29 from OzPol/dev-shawnw-updatefunc
fixed consumer registration bug on created on attribute
2 parents cfabf2b + 54d5e34 commit 4f2bcc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎components/CustomerRegisterForm.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { users, databases } from '../lib/appwrite.config';
1111

1212
const CustomerRegisterForm: React.FC = () => {
1313
const router = useRouter();
14-
const created = useState(new Date().toISOString());
1514
const [formData, setFormData] = useState({
1615
email: '',
1716
password: '',
@@ -54,7 +53,7 @@ const CustomerRegisterForm: React.FC = () => {
5453
zipcode: formData.zipcode,
5554
profileImg: formData.profileImg,
5655
userType:"Consumer",
57-
createon:created
56+
createon:new Date().toISOString()
5857
}
5958
);
6059

0 commit comments

Comments
 (0)
Please sign in to comment.