Skip to content

Commit

Permalink
Merge pull request #394 from pkova/master
Browse files Browse the repository at this point in the history
sigil-generator: download sigil with correct colors
  • Loading branch information
Fang- authored Feb 14, 2020
2 parents 38484bb + d18c726 commit c999c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/SigilGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default function SigilGenerator() {
const { downloadSigil } = useSigilDownloader(canvasRef);
const onSubmit = useCallback(
async (values, form) => {
const error = await downloadSigil(point, values.colors, values.size);
const colors = [values.bgColor, values.fgColor];
const error = await downloadSigil(point, colors, values.size);
if (error) {
return { [FORM_ERROR]: error };
}
Expand Down

0 comments on commit c999c93

Please sign in to comment.