Skip to content

Commit 9ea4eed

Browse files
authored
Update companyId value based on user state
1 parent 32c5a61 commit 9ea4eed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/src/components/Record.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ export default function Record() {
220220
required
221221
className="block w-full rounded-md border-0 py-1.5 pl-1 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:[...]
222222
placeholder="Company ID Number"
223-
value={form.companyId}
223+
{/* value={form.companyId} */}
224+
value={loggedIn && userState.user ? String(userState.user.companyId) : form.companyId}
224225
onChange={(e) => updateForm({ companyId: e.target.value })}
225226
/>
226227
</div>

0 commit comments

Comments
 (0)