Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Aug 21, 2018
1 parent fbae124 commit fde4165
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/search.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default ($scope, $rootScope, $location, $routeParams, steemService, eSteemService) => {

const searchStr = JSON.parse(decodeURIComponent($routeParams.obj)).str;

const term = decodeURIComponent($routeParams.obj);
const searchStr = JSON.parse(term.indexOf('?')>-1?term.split('?')[0]:term).str;
$scope.searchStr = searchStr;

$scope.posts = $rootScope.Data['posts'] || [];
Expand Down

0 comments on commit fde4165

Please sign in to comment.