Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds support for setValueRef #235

Merged
merged 6 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: simplify conditional
  • Loading branch information
kevinperaza committed Mar 20, 2024
commit 5b614eb37b45f4d239dc9ab7483b580673ab0874
2 changes: 1 addition & 1 deletion src/elements/CardExpirationDateElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const CardExpirationDateElementC: FC<
elementRef
);

if (valueRef && valueRef.current) {
if (valueRef?.current) {
element?.setValueRef(valueRef.current);
}

Expand Down
2 changes: 1 addition & 1 deletion src/elements/CardNumberElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const CardNumberElementC: FC<
elementRef
);

if (valueRef && valueRef.current) {
if (valueRef?.current) {
element?.setValueRef(valueRef.current);
}

Expand Down
2 changes: 1 addition & 1 deletion src/elements/CardVerificationCodeElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const CardVerificationCodeElementC: FC<
elementRef
);

if (valueRef && valueRef.current) {
if (valueRef?.current) {
element?.setValueRef(valueRef.current);
}

Expand Down
2 changes: 1 addition & 1 deletion src/elements/TextElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const TextElementC: FC<
elementRef
);

if (valueRef && valueRef.current) {
if (valueRef?.current) {
element?.setValueRef(valueRef.current);
}

Expand Down
Loading