From 9c3aaf7e770d7cc5d74ae6d5aeed735aa347eeb0 Mon Sep 17 00:00:00 2001 From: Ivan Danyliuk Date: Thu, 15 Nov 2018 10:05:29 +0100 Subject: [PATCH] Add ws address to start QR code --- cmd/txqr-tester/app/start_qr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/txqr-tester/app/start_qr.go b/cmd/txqr-tester/app/start_qr.go index 210fa7e..90e0cc2 100644 --- a/cmd/txqr-tester/app/start_qr.go +++ b/cmd/txqr-tester/app/start_qr.go @@ -11,7 +11,7 @@ import ( // StartQR renders the QR code with information needed to start // a new testing from smartphone. func (a *App) StartQR() vecty.ComponentOrHTML { - img, err := qr.Encode("test", 500, qr.Medium) + img, err := qr.Encode(a.wsAddress, 500, qr.Medium) if err != nil { // TODO(divan): display the error nicely (why this can even happen?) return elem.Div(vecty.Text(fmt.Sprintf("qr error: %v", err)))