Commit 845e444dace981aa0cba8695f965d90015c53f17

Authored by Adhidarma Hadiwinoto
1 parent 593cd2dbca
Exists in master

Hanya cek customRc jika length lebih dari 0

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -5,7 +5,7 @@ const organicRc = require('./rc');
5 5  
6 6 function getRcFromMessage(msg, customRc) {
7 7 let rc;
8   - if (customRc) {
  8 + if (customRc && Array.isArray(customRc) && customRc.length) {
9 9 rc = rcFromMsg(msg, customRc);
10 10 }
11 11