Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paybutton",
"version": "5.1.1",
"version": "5.1.2",
"description": "The easiest way to accept eCash online",
"author": "Blockchain Ventures Corp.",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion paybutton/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paybutton/paybutton",
"version": "5.1.1",
"version": "5.1.2",
"description": "The easiest way to accept eCash online",
"author": "",
"main": "dist/paybutton.js",
Expand Down
10 changes: 5 additions & 5 deletions react/lib/components/Widget/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ export interface WidgetProps {
disablePaymentId?: boolean
text?: string
ButtonComponent?: React.ComponentType
success: boolean
success?: boolean
successText?: string
theme?: ThemeName | Theme
foot?: React.ReactNode
disabled: boolean
disabled?: boolean
goalAmount?: number | string | null
currency?: Currency
animation?: animation
Expand Down Expand Up @@ -947,11 +947,11 @@ export const Widget: React.FunctionComponent<WidgetProps> = props => {
}

const handleQrCodeClick = useCallback((): void => {
if (disabled || to === undefined) return
if (disabled || to === undefined || qrLoading) return
if (!url || !copyToClipboard(url)) return
setCopied(true)
setRecentlyCopied(true)
}, [disabled, to, url, setCopied, setRecentlyCopied])
}, [disabled, to, url, setCopied, setRecentlyCopied, qrLoading])

const resolveUrl = useCallback((currency: string, amount?: number) => {
if (disabled || !to) return;
Expand Down Expand Up @@ -1267,7 +1267,7 @@ export const Widget: React.FunctionComponent<WidgetProps> = props => {
text: widgetButtonText,
hoverText,
onClick: handleButtonClick,
disabled: isPropsTrue(disabled),
disabled: isPropsTrue(disabled) || qrLoading,
animation,
size: 'medium',
})
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paybutton/react",
"version": "5.1.1",
"version": "5.1.2",
"description": "The easiest way to accept eCash online",
"author": "Blockchain Ventures Corp.",
"license": "MIT",
Expand Down