This section provides guidance for common issues encountered when working with the Custom Bet widget.
The widget provides a dbg prop that can be set to true to get some extra information on markets and outcomes, which can be useful in development or debugging sessions. This prop is meant to be used in development environments only.
Depending on your integration you can handle match not supported in two different ways, either by hiding the widget or by showing a message in the widget.
To show a "match not found" message inside the widget, return a general error from the getOfferingCallback with empty markets, and return empty cbMarkets from the calculateCallback:
getOffering callback:
callback
calculate callback:
callback(undefined, {
cbMarkets: [],
});For more general troubleshooting information, see the troubleshooting guide.